Skip to main content

Import

Usage

[abis/mintFunctionAbi.ts]
[components/BuyNFT.tsx]
Payment Selection Modal

Return Type: UseSelectPaymentModalReturnType

The hook returns an object with the following properties:

Properties

openSelectPaymentModal

(settings: SelectPaymentSettings) => void Function to open the Payment Selection modal with the specified settings. Parameters: The settings object can include the following properties:

closeSelectPaymentModal

() => void Function to close the Payment Selection modal.

selectPaymentSettings

SelectPaymentSettings | undefined The current settings configuration for the Payment Selection modal.

Notes

This hook provides methods to control the Payment Selection modal that allows users to purchase digital assets with multiple payment options. The modal offers various payment methods including:
  • Pay with cryptocurrency from the user’s wallet
  • Swap tokens to pay with a different cryptocurrency
  • Pay with credit/debit card
  • Receive funds from another wallet